﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.gxjdWebSite
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;
    public class Map_Employee : ClassMapping<DB_Model.gxjdWebSite.Employee>
    {

        public Map_Employee()
        {
            Id(x => x.user_id, map =>
            {
                map.Length(40);
            });

            Property(x => x.user_loginname, map =>
            {
                map.Length(200);
            });

            Property(x => x.user_truename_cn, map =>
            {
                map.Length(200);
            });

            Property(x => x.user_truename_en, map =>
            {
                map.Length(200);
            });

            Property(x => x.user_password, map =>
            {
                map.Length(200);
            });

            Property(x => x.dept_id, map =>
            {
                map.Length(200);
            });

            Property(x => x.post_id, map =>
            {
                map.Length(200);
            });

            Property(x => x.user_mobilephone, map =>
            {
                map.Length(200);
            });

            Property(x => x.user_desktopphone, map =>
            {
                map.Length(200);
            });

            Property(x => x.user_email, map =>
            {
                map.Length(200);
            });

            Property(x => x.user_roles, map =>
            {
                map.Length(200);
            });

            Property(x => x.user_fax, map =>
            {
                map.Length(200);
            });

            Property(x => x.is_valid, map =>
            {
           
            });
            Property(x => x.create_date, map =>
            {
              
            });
            Property(x => x.user_code, map =>
            {
                map.Length(200);
            });
            Property(x => x.sp_mail, map =>
            {
                map.Length(200);
            });
            Property(x => x.user_domain, map =>
            {
                map.Length(200);
            });

            Table("t_sys_user");
        }
    }
}
